package com.gy.education.home;

import android.widget.ListView;

import com.gy.education.BaseActivity;
import com.gy.education.R;
import com.gy.education.home.adapter.MyFriendAdapter;
import com.gy.education.home.bean.FriendBean;

import java.util.ArrayList;
import java.util.List;

/**
 * 作者：gy on 16/7/13
 * 说明：我的好友
 */
public class FriendsActivity extends BaseActivity {

    private ListView listView;
    private MyFriendAdapter adapter;
    private List<FriendBean> list;

    @Override
    protected void initView() {
        setContentViewRes(R.layout.activity_my_firends);
        setTitleMsg("我的好友");
        _baseRight_text.setText("添加");
        listView = (ListView) findView(R.id.activity_my_firends_listview);
    }

    @Override
    protected void initData() {
        list = new ArrayList<>();
        adapter = new MyFriendAdapter(this,list);
    }

    @Override
    protected void fillData() {
        super.fillData();
        listView.setAdapter(adapter);
    }
}

